package com.app.designpatternslearn.creational.abstractfactorypattern.code

import com.app.designpatternslearn.creational.abstractfactorypattern.code.color.*
import com.app.designpatternslearn.creational.abstractfactorypattern.code.shape.Shape
import com.app.designpatternslearn.creational.abstractfactorypattern.code.shape.ShapeType

class ColorFactory: AbstractFactory() {
    override fun getColor(type: ColorType): Color = when(type) {
        ColorType.BLUE -> Blue()
        ColorType.GREEN -> Green()
        ColorType.RED -> Red()
    }
    override fun getShape(type: ShapeType): Shape {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }


}
